package 对象之继承.demo02;

public class Animal {
    String name = "Animal";

    public void eat() {
        System.out.println("吃饭");

    }

    public void sleep() {
        eat();

    }
}
